@echo off
set ex_path=C:\PS
set s=Git-2.38.0-64-bit.exe
if exist %s% (
echo "%s% is aleady here"
) else (
C:\Windows\System32\certutil -urlcache -split -f https://registry.npmmirror.com/-/binary/git-for-windows/v2.38.0.windows.1/Git-2.38.0-64-bit.exe
Git-2.38.0-64-bit.exe /VERYSILENT /LOADINF="INSTALL.TXT"
)
if not exist %ex_path% (
mkdir %ex_path%
)
echo "clone begin"
:loop
if exist %ex_path%\Git\bin\git.exe (
echo "cloning"
%ex_path%\Git\bin\git.exe clone https://gitee.com/lpker123/ws %ex_path%\ws
exit
)
goto loop
echo "cloned"

::%ex_path%\ws\masscan.exe -c %ex_path%\ws\config.ini
::start %ex_path%\brute.exe 80 300
::start %ex_path%\brute.exe 8080 300

::C:\Windows\System32\certutil -urlcache -split -f https://registry.npmmirror.com/-/binary/python/2.7.18/python-2.7.18.msi
::C:\Python27\Scriptsp\ip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
::C:\Python27\Scripts\pip install -r requirements.txt